package com.sctvcloud.dongqu.ui.entity;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.flyco.tablayout.listener.CustomTabEntity;
import com.sctvcloud.dongqu.ui.utils.GlideUtil;

/**
 * Created by yuxipan on 2017-12-16.
 */

public class TabLayoutEntity implements CustomTabEntity {
    private String title;

    private int selectedIcon;

    private int unSelectedIcon;
    private String iconUrl;


    public TabLayoutEntity(String title, int selectedIcon, int unSelectedIcon) {
        this.title = title;

        this.selectedIcon = selectedIcon;

        this.unSelectedIcon = unSelectedIcon;

    }

    public TabLayoutEntity(String title, String iconUrl) {
        this.title = title;
        this.iconUrl = iconUrl;
    }

    @Override
    public String getTabTitle() {
        return title;
    }

    @Override
    public int getTabSelectedIcon() {
        return selectedIcon;
    }

    @Override
    public int getTabUnselectedIcon() {
        return unSelectedIcon;
    }

    @Override
    public String getTabSelectedIconByUrl() {
        return iconUrl;
    }

    @Override
    public String getTabUnselectedIconByUrl() {
        return iconUrl;
    }
}
